<center>
    <div style="width:400px">
        <table cellspacing='0' cellpadding='0' border='0' width='100%'>
            <tr>
                <td align='left'>
                    <a class='small_button' target='_blank' href="/frmAreaPdf?mode={$mode}">印刷プレビュー</a>
                </td>
                <td align='right'>
                	{if $mode == 'list'}
                    	<a class='small_button' href='/maitains'>閉じる</a>
                    {else}
                    	<a class='small_button' href='/'>閉じる</a>
                    {/if}
                </td>
            </tr>
        </table>
    </div>
    <br/><br/>
    <div id='area_content' style="width:800px">
        {if ($arrArea)}
            <table id='tblArea' cellspacing='0' cellpadding='0' border='0' width='100%'>
                <tr>
                    <th>エリアコード</th>
                    <th>エリア名</th>
                </tr>
                {foreach $arrArea as $item}
                    <tr>
                        <td align='left'>
                        	<input type='text' value='{$item['AreaModel']['area_cd']}' 
                        		   class='ajax_area_{$item['AreaModel']['id']}'
                        		   data-url = '/ajax/area'
                        		   data-field = 'area_cd'
                            />                    
                        </td>
                        <td align='left'>
                        	<input type='text' value='{$item['AreaModel']['area_name']}' 
                        		   class='ajax_area_{$item['AreaModel']['id']}'
                        		   data-url = '/ajax/area'
                        		   data-field = 'area_name'
                            />                          	
                    </tr>
                {/foreach}
				<tr id='newRec'>
                        <td align='left'>
                        	<input type='text' value='' 
                        		   class='ajax_area_insert'
                        		   data-url = '/ajax/area'
                        		   data-field = 'area_cd'
                            />
                        </td>
                        <td align='left'>
                         	<input type='text' value='' 
                        		   class='ajax_area_insert'
                        		   data-url = '/ajax/area'
                        		   data-field='area_name'
                        	/>
                        </td>
                </tr>
            </table>
        {else}
            データーが有りません。
        {/if}
    </div>
</center>